package cn.com.bonc.khjy.schedu;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @author hb
 */
@Component
public class RestDynamicScheduler implements ApplicationRunner {
    private final static Log log= LogFactory.get();

    @Autowired
    private RestFullMonitor restFullMonitor;


    @Override
    public void run( ApplicationArguments args ) throws InterruptedException {
      // log.debug("启动REST传输线程.....");
      //restFullMonitor.toThreadStart();
    }

    @PreDestroy
    public void destroy(){
     //   log.debug("关闭REST文件传输线程.....");
     // restFullMonitor.toThreadStop();
    }
}
